package club.gskj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import club.gskj.common.utils.PageUtils;
import club.gskj.gulimall.product.entity.ProductAttrValueEntity;

import java.util.List;
import java.util.Map;

/**
 * spu属性值
 *
 * @author 康纳-connor
 * @email 2417039231@gmail.com
 * @date 2020-12-27 15:07:43
 */
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveBatchProductAttr(List<ProductAttrValueEntity> baseAttrList);

    /**
     * @param spuId
     * @return java.util.List<club.gskj.gulimall.product.entity.ProductAttrValueEntity>
     * @author 康纳-connor
     * @creed: Talk is cheap,show me the code
     * @date 21.2.7 16:32
     * @Description 根据spuId 查询所有基本属性列表
     */
    List<ProductAttrValueEntity> listBaseAttrForSpuBySpuId(Long spuId);

    void updateAttrBySpuId(Long spuId, List<ProductAttrValueEntity> list);
}

